#ifndef _SHADOW_SMYSQL_HELPER_H_
#define _SHADOW_SMYSQL_HELPER_H_

#include <string>

#include <log4cxx/logger.h>
#include <log4cxx/xml/domconfigurator.h>

#include <mysql.h>

using std::string;

class MysqlHelper {
		public:
				MysqlHelper();
				virtual ~MysqlHelper();

				int query(MYSQL * mysql, const char * sql, const int sql_len);
				int escape_string(MYSQL * mysql, string & to, const char * from, const int from_len);
				MYSQL_RES * store_result(MYSQL * mysql, const char * sql);
		private:
				log4cxx::LoggerPtr _logger;
};
#endif
